package service.purchasing.impl;

import dao.purchasing.TorderDao;
import model.purchasing.TorderMst;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.purchasing.TorderService;

@Service("torderService")
@Transactional
public class TorderServiceImpl implements TorderService {

    @Autowired private TorderDao torderDao;
    
    @Override
    public long save(TorderMst data) {
        return torderDao.saveData(data);
    }

    @Override
    public boolean manageOrder(long id) {
         return torderDao.manageOder(id);
    }
    
    @Override
    public boolean delete(TorderMst data) {
        return torderDao.delete(data);
    }

   
}
